#Oct-13-2012 Created by wuhm<wuhm@hisome.com>

all: EGF_Version_mk EGF_Version_h

include TARGET.mk

SVNSRV := svnserver
SVNDIR := EGF_Version/Active
SVNCMD := svn --username EGF_Version --password EGF_Version_pwd --no-auth-cache export

SVNURL := svn://$(SVNSRV)/$(SVNDIR)

FNAME_mk_sym := EGF_Version.mk
FNAME_mk := $(FNAME_mk_sym)_$(TARGET_PLATFORM).$(TARGET_BOARD_NAME).$(TARGET_PRODUCT_MODEL)

FNAME_h_sym := EGF_Version.h
FNAME_h := $(FNAME_h_sym)_$(TARGET_PLATFORM).$(TARGET_BOARD_NAME).$(TARGET_PRODUCT_MODEL)

SVNURL_mk := $(SVNURL)/$(FNAME_mk)
SVNURL_h := $(SVNURL)/$(FNAME_h)

EGF_Version_mk:
	@echo "making EGF_Version_mk"
	rm -f $(FNAME_mk) $(FNAME_mk_sym)
	$(SVNCMD) $(SVNURL_mk) $(FNAME_mk)
	ln -sf $(FNAME_mk) $(FNAME_mk_sym)


EGF_Version_h:
	@echo "making EGF_Version_h"
	rm -f $(FNAME_h) $(FNAME_h_sym)
	$(SVNCMD) $(SVNURL_h) $(FNAME_h)
	ln -sf $(FNAME_h) $(FNAME_h_sym)

EGF_env:
	@echo "EGF_env:"
	@echo "SVNURL_mk=$(SVNURL_mk)"
	@echo "SVNURL_h=$(SVNURL_h)"

